package cmd

import (
	"fmt"
	"github.com/spf13/cobra"
)

var initCmd = &cobra.Command{
	Use:   "add",
	Short: "short init",
	Long:  "long init",
	Run: func(cmd *cobra.Command, args []string) {
		fmt.Println("run init cmd begin")
		fmt.Println(cmd.Flags().Lookup("viper").Value)
		fmt.Println(cmd.Flags().Lookup("author").Value)
		fmt.Println(cmd.Flags().Lookup("config").Value)
		fmt.Println(cmd.Flags().Lookup("license").Value)
		fmt.Println("run init cmd end")
	},
}

func init() {
	rootCmd.AddCommand(initCmd)
}
